package com.blog.service;

import java.util.List;
import java.util.Map;

import com.blog.common.ServerResponse;
import com.blog.pojo.MBlog;
import com.blog.vo.DetailVo;
import com.blog.vo.MBlogAndCategoryVo;
import com.blog.vo.MBlogVo;
import com.github.pagehelper.PageInfo;

public interface IBlogService {
	
	//添加
	public void save(MBlog blog);

	public List<MBlogVo> selectAll();

	public MBlog selectById(Integer id);

	public int delete(Integer id);

	public List<MBlogVo> selectByName(String name);

	public MBlogAndCategoryVo query2();

	public DetailVo getDetail(int id);

	public MBlogAndCategoryVo queryBlogByCat(Integer categoryid);

	public MBlogAndCategoryVo queryBlogByName(String title);

	public PageInfo selectAllJson(Integer page,Integer rows);

	public PageInfo selectByName2(String title, Integer pageNum, Integer pageSize);

	public Map printById(Integer id,String title,String link);
}      
 